﻿using System.Data.Entity.ModelConfiguration;
using Zinnia.EF.Test.Models;

namespace Zinnia.EF.Test.Map
{
    /// <summary>
    /// 数据库映射类约定接口
    /// </summary>
    public interface IZinniaEfBaseMap
    {
    }
    /// <summary>
    /// 映射类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public abstract class ZinniaEfBaseMap<T> : EntityTypeConfiguration<T>, IZinniaEfBaseMap where T : ZinniaObject
    {

    }
    /// <summary>
    /// Destination映射实现类
    /// </summary>
    public class DestinationMap : ZinniaEfBaseMap<Destination>
    {

    }
    /// <summary>
    /// Lodging映射实现类
    /// </summary>
    public class LodgingMap : ZinniaEfBaseMap<Lodging>
    {

    }
}
